package com.book.model.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * <p>
 * 校区
 * </p>
 *
 * @author auto
 * @since 2025-04-03 10:23:06
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName("campus")
@Schema(name = "Campus对象", description = "校区")
public class Campus {

    @Schema(name = "校区主键")
    @TableId(value = "campus_id", type = IdType.ASSIGN_UUID)
    private String campusId;

    @Schema(name = "校区名称")
    @TableField("campus_name")
    private String campusName;

    @Schema(name = "校区所属学校ID")
    @TableField("univer_id")
    private String univerId;

    @Schema(name = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;


}
